Exit

The commands exit and quit and the END-OF-FILE character will exit the current gnuplot command file and load the next one. See "help batch/interactive" for more details.

Each of these commands will clear the output device (as does the clear command) before exiting.